package com.jdzy.model.student.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jdzy.model.common.pojos.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "student学生表")
@TableName("student")
public class Student extends BaseEntity {

    @ApiModelProperty(value = "学号stuId")
    @TableField(value = "stu_id")
    private String stuId;

    @ApiModelProperty(value = "班级Id")
    @TableField(value = "classroom_id")
    private String classroomId;

    @ApiModelProperty(value = "专业Id")
    @TableField(value = "profession_id")
    private String professionId;

    @ApiModelProperty(value = "密码password")
    @TableField(value = "password")
    private String password;

    @ApiModelProperty(value = "密码加密加盐salt")
    @TableField(value = "salt")
    private String salt;

    @ApiModelProperty(value = "姓名name")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "sex 0女1男2未知")
    @TableField(value = "sex")
    private Byte sex;

    @ApiModelProperty(value = "头像")
    @TableField(value = "avatar")
    private String avatar;
}
